import './App.css'
import routes from './routes/index.jsx'
import {useRoutes} from 'react-router-dom'
import { useEffect } from 'react'

import {ConnectDb} from './localDatabase/connectDb.js'

function App() {
  useEffect(()=>{
    new ConnectDb()
  },[])


  const element = useRoutes(routes)
  return (
    <>
     {element}
    </>
  )
}

export default App
